import Layout from "@/views/layout";

const staticRoutes = [
  {
    path: "/login",
    name: "Login",
    hidden: true,
    component: () => import("@/views/login")
  },
  {
    path: "/404",
    name: "404",
    hidden: true,
    component: () => import("@/views/404")
  },
  {
    path: "*",
    redirect: "/404"
  },
  {
    path: "/",
    component: Layout,
    redirect: "/userInfo",
    name: "主页",
    hidden: true,
    meta: {
      title: "个人信息"
    },
    children: [
      {
        path: "userInfo",
        component: () => import("@/views/userInfo")
      }
    ]
  }
];

export default staticRoutes;
